export  function debounce(fn, wait) { //实现防抖功能的函数debounce
    let timer = null
    return function(...args) { // this === btn
      clearTimeout(timer)// 销毁上一次的定时器
      timer = setTimeout(() => {
        fn.call(this, ...args)
      }, wait)
    }
  }